<template>
	<view class="u-page goods" style="padding-bottom: 150rpx;">
		<view class="goods-status">
			<view class="" style="background-color: red;">
				<image src="" mode="widthFix" style="width: 75rpx;height: 75rpx;"></image>
			</view>
			<view class="m-l-20 goods-status-right">
				<view class="goods-status-name">
					服务中
				</view>
				<view class="goods-status-time">
					2022-10 16：20：30
				</view>
			</view>
		</view>
		<view class="card order">
			<navigator url="/pages/order/detail" class="order-header">
				<view class="order-header-name">
					<view class="m-r-10">
						龙鼎汽修
					</view>
					<u-icon name="arrow-right"></u-icon>
				</view>
				<view class="order-header-name">
					合计：<span class="price"><span style="font-size: 28rpx;">¥</span>1999</span>
				</view>
			</navigator>
			<view class="order-content">
				<view class="goods">
					<!-- <view class="goods-item">
							<view class="goods-item-left">
								<view class="goods-item-img"></view>
								<view class="goods-item-info">
									<view class="goods-item-name">
										保养机油
									</view>
									<view class="goods-item-attr">
										<view class="">
											5W 40
										</view>
										<view class="m-l-10">
											库存12桶
										</view>
									</view>
									<view class="">
										<u-text mode="price" size="14" text="728732.32" :color="$u.color.priceColor">
										</u-text>
									</view>
								</view>
							</view>
							<view class="goods-item-right">
								<view class="goods-item-quan">
									x2
								</view>
							</view>
						</view> -->
					<view class="" style="display: flex;flex-direction: row;justify-content: space-between;">
						<view class="goods-scroll-left">
							<u-scroll-list :indicator="false">
								<view class="goods-scroll" v-for="(item, index) in 5" :key="index">
									<view class="goods-scroll-img"></view>
								</view>
							</u-scroll-list>
						</view>
						<view class="goods-scroll-right">
							<view class="goods-scroll-quan">
								x2
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="card p-30">
			<view class="info">
				<view class="name">
					下单时间
				</view>
				<view class="">
					2022-10 16：20：30
				</view>
			</view>
		</view>
		<view class="card p-30">
			<view class="info">
				<view class="name">
					付款时间
				</view>
				<view class="">
					2022-10 16：20：30
				</view>
			</view>
			<view class="info m-t-30">
				<view class="name">
					付款方式
				</view>
				<view class="">
					微信支付
				</view>
			</view>
			<view class="info m-t-30">
				<view class="name">
					支付单号
				</view>
				<view class="">
					HD007940123
				</view>
			</view>
		</view>
		<view class="card p-30">
			<view class="info">
				<view class="name">
					退款时间
				</view>
				<view class="">
					2022-10 16：20：30
				</view>
			</view>
			<view class="info m-t-30">
				<view class="name">
					退款单号
				</view>
				<view class="">
					HD00384932
				</view>
			</view>
		</view>
		<view class="card p-30">
			<view class="info">
				<view class="name">
					订单取消
				</view>
				<view class="">
					2022-10 16：20：30
				</view>
			</view>
		</view>
		<view class="share">
			<view class="share-name">
				分享有奖
			</view>
			<view class="share-icon">
				<view class="share-icon-left">
					<view class="">
						<image src="/static/uview/common/logo.png" style="width: 40rpx;height: 40rpx;" mode="widthFix"></image>
					</view>
					<view class="ellipsis m-l-10" style="width: 80%;">
						分享订单给好友，获得随机礼品
					</view>
				</view>
				<view class="btn">
					已获得
				</view>
			</view>
			<view class="share-icon">
				<view class=" share-icon-left">
					<view class="">
						<image src="/static/uview/common/logo.png" style="width: 40rpx;height: 40rpx;" mode="widthFix"></image>
					</view>
					<view class="ellipsis m-l-10" style="width: 80%;">
						好友通过分享链接下单，您可获得额外积分
					</view>
				</view>
				<view class="btn active">
					未获得
				</view>
			</view>
		</view>
		<view class="submit">
			<view class="submit-left">
				<image src="/static/uview/common/logo.png" style="width: 60rpx;height: 60rpx;" mode="widthFix"></image>
				<view class="submit-left-name">
					分享
				</view>
			</view>
			<view class="submit-right">
				<u-button @click="back()" text="取消订单" :plain="true" shape="circle"
					:customStyle="{margin:'30rpx 30rpx',background:'transparent'}" :color="$u.color.color">
				</u-button>
				<u-button @click="sumbit()" text="再次购买" shape="circle" :customStyle="{margin:'30rpx 30rpx'}"
					:color="$u.color.color">
				</u-button>
			</view>
		</view>
	</view>
</template>

<script>
</script>

<style lang="scss">
	.card {
		border-radius: $radius;
		box-shadow: $shadow;
		background: rgba(255, 255, 255, 1);
		margin-top: 30rpx;
	}
	
	.p-30 {
		padding: 30rpx;
	}
	
	.info {
		display: flex;
		justify-content: space-between;
		font-size: 24rpx;
	}
	
	.name {
		color: rgba(153, 153, 153, 1)
	}
	
	.share {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(245, 245, 255, 0.47) 100%, rgba(245, 245, 255, 0.51) 100%);
		border-radius: $radius;
		margin-top: 30rpx;
		padding: 30rpx;
		
		&-name {
			font-size: 36rpx;
		}
		
		&-icon {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: center;
			font-size: 30rpx;
			margin-top: 30rpx;
			
			&-left {
				display: flex;
				flex-direction: row;
				align-items: center;
				width: 80%;
			}
			
			.btn {
				border: 1rpx solid rgba(229, 229, 229, 1);
				border-radius: 50rpx;
				padding: 5rpx 12rpx;
				font-size: 20rpx;
				color: rgba(0, 0, 0, 1)
			}
			
			.btn.active {
				border: 1rpx solid rgba(94, 94, 224, 1);
				color: rgba(94, 94, 224, 1);
			}
		}
	}
	
	.submit {
		display: flex;
		justify-content: space-between;
		align-items: center;
		position: fixed;
		left: 0;
		bottom: 0;
		width: 100%;
		height: 150rpx;
		background-color: #f5f5f5;
		
		&-left {
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			align-items: center;
			width: 20%;
			&-name {
				font-size: 24rpx;
				font-weight: 700;
			}
		}
		
		&-right {
			width: 80%;
			display: flex;
			justify-content: space-between;
			align-items: center;
		}
	}
	
	.price {
		color: $priceColor;
	}
	.goods {

		&-status {
			background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(245, 245, 255, 0.47) 100%, rgba(245, 245, 255, 0.51) 100%);
			border-radius: $radius;
			padding: 30rpx 30rpx 60rpx 30rpx;
			display: flex;
			flex-direction: row;

			&-right {
				display: flex;
				flex-direction: column;
				justify-content: space-between;
			}

			&-name {
				font-size: 30rpx;
				font-weight: 700;
			}

			&-time {
				font-size: 24rpx;
				color: rgba(153, 153, 153, 1);
			}
		}

		&-item {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			margin: 30rpx 0;

			&-left {
				display: flex;
				flex-direction: row;
			}

			&-img {
				width: 150rpx;
				height: 150rpx;
				background-color: #eee;
				border-radius: $radius;
				box-shadow: $shadow;
			}

			&-info {
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				margin-left: 15rpx;
				font-size: 30rpx;
			}

			&-name {
				color: #000;
				font-weight: bold;
			}

			&-attr {
				display: flex;
				flex-direction: row;
				font-size: 24rpx;
				color: $u-light-color;
			}

			&-right {
				display: flex;
				flex-direction: row;
				align-items: flex-end;
				justify-content: end;
			}

			&-quan {
				font-size: 24rpx;
				border-radius: 50%;
				border: 1rpx solid #eee;
				width: 40rpx;
				height: 40rpx;
				display: flex;
				justify-content: center;
				align-items: center;
			}
		}

		&-scroll {
			&-img {
				width: 150rpx;
				height: 150rpx;
				background-color: #eee;
				border-radius: $radius;
				box-shadow: $shadow;
				margin-right: 20rpx;
			}

			&-left {
				width: 90%;
			}

			&-right {
				display: flex;
				flex-direction: row;
				align-items: flex-end;
				justify-content: end;
				width: 10%;
			}

			&-quan {
				font-size: 24rpx;
				border-radius: 50%;
				border: 1rpx solid #eee;
				width: 40rpx;
				height: 40rpx;
				display: flex;
				justify-content: center;
				align-items: center;
			}
		}

		.order {
			margin-top: -30rpx;
			&-header {
				padding: 30rpx;
				display: flex;
				flex-direction: row;
				justify-content: space-between;

				&-name {
					display: flex;
					flex-direction: row;
					justify-content: space-between;
					align-items: center;
					font-size: 36rpx;
					font-weight: 500;
				}
			}

			&-content {
				padding: 30rpx;
				// border-bottom: 1rpx solid #f5f5f5;
				border-top: 1rpx solid #f5f5f5;
				min-height: 100rpx;
			}

			&-floor {
				padding: 30rpx;
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				align-items: center;
				font-size: 30rpx;
				color: rgba(153, 153, 153, 1);

				&-time {
					font-size: 24rpx;
				}
			}
		}
	}
</style>
